package org.kongqian.finance.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class DepositVO {

    @ApiModelProperty(value = "时间")
    private Date date;

    @ApiModelProperty(value = "销售金额")
    private Long salesSum;

    @ApiModelProperty(value = "销售总数")
    private Long salesCount;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH-mm-ss")
    public Date getDate() {
        return date;
    }

    @JsonFormat(pattern = "yyyy-MM-dd HH-mm-ss", timezone = "GMT + 8")
    public void setDate(Date date) {
        this.date = date;
    }
}
